package com.jr.mapper;

import com.jr.entry.BookInfo;
import com.jr.entry.Users;
import com.jr.pojo.BookInfoSelect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersMapper {
    /*登录*/
    public Users selectByInfo(Users users);
    /*查询全部*/
    public List<BookInfo> selectAll();
    /*条件查询*/
    public List<BookInfo> selectByBy(BookInfoSelect bookInfo);
    /*添加*/
    public int insertBook(BookInfo bookInfo);
   /*修改*/
    public int updateBook(BookInfo bookInfo);
    /*删除*/
    public int deleteBook(Integer book_id);
    //分页
    List<BookInfo> selectByPage(@Param("offset") int offset, @Param("pageSize") int pageSize);

}
